package ink.fujisann.learning.stock.pojo;

import ink.fujisann.learning.code.pojo.BaseInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Table(name = "sys_file")
@org.hibernate.annotations.Table(appliesTo = "sys_file", comment = "系统文件")
@DynamicInsert
@DynamicUpdate
@Data
@EqualsAndHashCode(callSuper = true)
public class SysFile extends BaseInfo {
    @Id
    @GenericGenerator(name = "sys_file_id", strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "sys_file_id")
    @ApiModelProperty("主键")
    private String id;

    @Column(columnDefinition = "varchar(64) comment '文件类型'")
    @ApiModelProperty("文件类型")
    private String type;

    @Column(columnDefinition = "varchar(255) comment '文件路径'")
    @ApiModelProperty("文件路径")
    private String fullPath;
}
